<head>
    <title><g:message code="LOGIN" default="LOGIN" /></title>
</head>
<body>
	<g:hiddenField name="showLoginHidden" value="${showLogin}" />
	
	<g:if test="${flash.message}">
    	<div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
    </g:if>
    <g:form controller="autentication" action="login">
	   	<table>
			<tr>
		    	<td><g:message code="USER" default="USER" />:</td>
	            <td><g:textField name="user"/></td>
                <td><g:message code="PASSWORD" default="PASSWORD" />:</td>
                <td><g:passwordField id="password" name="password"/></td>
            </tr>
            <tr>
            <td><g:link controller="autentication" action="login"><g:message code="LOGIN" default="LOGIN" /></g:link>
            <span class="button"><g:actionSubmit class="login" action="login" value="${message(code: 'edit', 'default': 'EDIT')}" /></span>
            <input type="submit" ></td>
            <td><a id="cancelLink"><g:message code="CANCEL" default="CANCEL" /></a></td>
            </tr>
       	</table>
       	<g:hiddenField name="fromController" value="${controllerName}" />
       	<g:hiddenField name="fromAction" value="${actionName}" />
       	<g:hiddenField name="fromId" value="${params.id}"/>
	</g:form>
</body>
